package com.example;

import com.contracts.BoolContainer;

/**
 * User: sckomoroh
 * Date: 2/17/13
 * Time: 4:12 PM
 */
public class MainClass
{
    public static void main(String[] args)
    {
        try
        {
            Converter.addClasses(BoolContainer.class);

            BoolContainer res = Converter.xmlToObject(
                    "<boolContainer><contract2><boolContract><result>true</result><list><boolCollection><boolItem><item>item 5</item></boolItem><boolItem><item>O ya ebu!!!</item></boolItem></boolCollection></list></boolContract></contract2><contract><boolContract><result>false</result><list><boolCollection><boolItem><item>item 1</item></boolItem><boolItem><item>item 2</item></boolItem></boolCollection></list></boolContract></contract></boolContainer>");

            String xmlContent = Converter.objectToXml(res);

            if (res == null)
            {
                int a = 0;
            }
        } catch (Exception ex)
        {
            ex.printStackTrace();
        }
    }
}
